function newremoveElement(){
	return function (parentDiv, childDiv){
			$("#"+parentDiv).children("#"+childDiv).fadeOut();
	}
};
function newGetSubCount(){
	return function (mysiteaccid1, pageuserowner) {
		document.getElementById("Hint").style.display = 'block';
		if (waittoconfirm < 1) {
			waittoconfirm = 2;
			setTimeout("WaitToConfirmIt();", 1000);
			$("#Hint").html('<img src="img/loader.gif">');
			$.ajax({
				type: "GET",
				url: "fblikesconflike.php",
				data: "sitename1=" + mysiteaccid1 + "---" + pageuserowner,
				success: function(msg) {

					if (msg > 0) {
						$("#Hint").html('<font size="4" color="green">Liked! ' + msg + ' Points added to your balance.</font>');
						removeElement('tbl', mysiteaccid1);

					}
					if (msg == '-1') {
						$("#Hint").html('<font size="4" color="green">Ok. Points Added.</font>');
						removeElement('tbl', mysiteaccid1);

					}
					if (msg == 0) {
						$("#Hint").html('<font size="4" color="red">Not Liked!</font>');
						SkipThisPage(mysiteaccid1);
					}
				}
			});

		}
		else {
			$("#Hint").html('<font size="4" color="blue">Please wait ' + waittoconfirm + ' Seconds to confirm again!</font>');
		}

	}
};
removeElement = newremoveElement();
SetAcc = newGetSubCount();